package com.wulwu.rocketmq.practice.order;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description 订单信息
 * @Author wuxb
 * @Date 2022/4/13 14:02
 */
public class OrderInfo {

    private Long orderId;

    private String orderDesc;


    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getOrderDesc() {
        return orderDesc;
    }

    public void setOrderDesc(String orderDesc) {
        this.orderDesc = orderDesc;
    }

    @Override
    public String toString() {
        return "OrderInfo{" +
                "orderId=" + orderId +
                ", orderDesc='" + orderDesc + '\'' +
                '}';
    }

    public static List<OrderInfo> buildOrders() {
        List<OrderInfo> orderInfos = new ArrayList<>();

        OrderInfo orderInfo11 = new OrderInfo();
        orderInfo11.setOrderId(100L);
        orderInfo11.setOrderDesc("创建");
        orderInfos.add(orderInfo11);

        OrderInfo orderInfo12 = new OrderInfo();
        orderInfo12.setOrderId(100L);
        orderInfo12.setOrderDesc("支付");
        orderInfos.add(orderInfo12);

        OrderInfo orderInfo13 = new OrderInfo();
        orderInfo13.setOrderId(100L);
        orderInfo13.setOrderDesc("发货");
        orderInfos.add(orderInfo13);

        OrderInfo orderInfo14 = new OrderInfo();
        orderInfo14.setOrderId(100L);
        orderInfo14.setOrderDesc("完成");
        orderInfos.add(orderInfo14);

        OrderInfo orderInfo21 = new OrderInfo();
        orderInfo21.setOrderId(200L);
        orderInfo21.setOrderDesc("创建");
        orderInfos.add(orderInfo21);

        OrderInfo orderInfo22 = new OrderInfo();
        orderInfo22.setOrderId(200L);
        orderInfo22.setOrderDesc("完成");
        orderInfos.add(orderInfo22);

        OrderInfo orderInfo31 = new OrderInfo();
        orderInfo31.setOrderId(300L);
        orderInfo31.setOrderDesc("创建");
        orderInfos.add(orderInfo31);

        OrderInfo orderInfo32 = new OrderInfo();
        orderInfo32.setOrderId(300L);
        orderInfo32.setOrderDesc("支付");
        orderInfos.add(orderInfo32);

        OrderInfo orderInfo33 = new OrderInfo();
        orderInfo33.setOrderId(300L);
        orderInfo33.setOrderDesc("完成");
        orderInfos.add(orderInfo33);

        return orderInfos;
    }

}
